<div class="form">

<?php echo CHtml::beginForm(); ?>

<?php echo CHtml::errorSummary($model); ?>

<?php if($update): ?>
<div class='row'>
	<?php echo CHtml::activeLabelEx($model,'id'); ?>
	<?php echo $model->id; ?>
</div>
<?php endif; ?>

<div class='row'>
	<?php echo CHtml::activeLabelEx($model,'title'); ?>
	<?php echo CHtml::activeTextField($model,'title',array('size'=>45,'maxlength'=>45)); ?>
</div>

<div class='row'>
	<?php echo CHtml::activeLabelEx($model,'alias'); ?>
	<?php echo CHtml::activeTextField($model,'alias',array('size'=>45,'maxlength'=>45)); ?>
</div>

<div class='row'>
	<?php echo CHtml::activeLabelEx($model,'url'); ?>
	<?php echo CHtml::activeTextField($model,'url',array('size'=>45,'maxlength'=>255)); ?>
</div>

<div class='row'>
	<?php echo CHtml::activeLabelEx($model,'page_title'); ?>
	<?php echo CHtml::activeTextArea($model,'page_title', array('cols'=>50, 'rows'=>8)); ?>
</div>

<div class='row'>
	<?php echo CHtml::activeLabelEx($model,'page_description'); ?>
	<?php echo CHtml::activeTextArea($model,'page_description', array('cols'=>50, 'rows'=>8)); ?>
</div>

<div class='row'>
	<?php echo CHtml::activeLabelEx($model,'page_keywords'); ?>
	<?php echo CHtml::activeTextArea($model,'page_keywords', array('cols'=>50, 'rows'=>8)); ?>
</div>

<div class="row action">
	<?php echo CHtml::submitButton($update ? 'Сохранить' : 'Создать', array('name'=>'submitPart')); ?>
</div>

<?php echo CHtml::activeHiddenField($model, 'parent_id'); ?>
<?php echo CHtml::activeHiddenField($model, 'lft'); ?>
<?php echo CHtml::activeHiddenField($model, 'rgt'); ?>
<?php echo CHtml::activeHiddenField($model, 'level'); ?>

<?php echo CHtml::endForm(); ?>

</div>
